package com.pan.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pan.dao.ManagerDao;
import com.pan.domain.Apply;
import com.pan.domain.User;
import com.pan.service.IManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ManagerServiceImpl extends ServiceImpl<ManagerDao, User> implements IManagerService {
    @Autowired
    private ManagerDao managerDao;

    @Override
    public List<Apply> getAllApply() {
        return managerDao.getAllApply();
    }

    @Override
    public Boolean LogicDelete(Integer id) {
        return managerDao.LogicDelete(id);
    }

    @Override
    public Boolean changeDeptno(Integer id, Integer deptno) {
        return managerDao.changeDeptno(id,deptno);
    }

    @Override
    public Boolean changePosition(Integer id, String position) {
        return managerDao.changePosition(id,position);
    }

    @Override
    public Boolean changeSalary(Integer id, Integer salary) {
        return managerDao.changeSalary(id,salary);
    }

    @Override
    public Boolean applyManager(Apply apply) {
        return managerDao.applyManager(apply);
    }

    @Override
    public Boolean changeApplyCondition(Apply apply) {
        return managerDao.changeApplyCondition(apply);
    }

    @Override
    public Boolean setNewManager(Integer id) {
        return managerDao.setNewManager(id);
    }
}
